package com.hemaapp.yjnh.bean;

import java.io.Serializable;

import org.json.JSONObject;

import xtom.frame.XtomObject;
import xtom.frame.exception.DataParseException;

/**土地作物简要信息
 * 
 */
public class LandGoods extends XtomObject implements Serializable {

	private static final long serialVersionUID = 1L;
	private String id; // 主键id
	private String good_name; // 用户id
	private boolean checked = false;//用于被选择是使用

	public LandGoods(JSONObject jsonObject) throws DataParseException {
		if (jsonObject != null) {
			try {
				id = get(jsonObject, "id");
				good_name = get(jsonObject, "good_name");
				log_d(toString());
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}

	public LandGoods() {
		super();
	}

	@Override
	public String toString() {
		return "Address [id=" + id + ", good_name=" + good_name + "]";
	}

	public String getId() {
		return id;
	}

	public String getgood_name() {
		return good_name;
	}

	public boolean getChecked() {
		return checked;
	}

	public void setChecked(boolean check) {
		this.checked = check;
	}

}
